<template>
	<view class="">
		<view class="catgory-flxe">
			<view class="catgory-item" v-for="(item,index) in catgoryList" :key="index" @tap="switchTabClass">
				<image :src="item.src" mode=""></image>
				<text>{{item.name}}</text>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default{
		props:{
			catgoryList:Array
		},
		methods:{
			switchTabClass(){
				uni.switchTab({
					url:"../../pages/class/class",
					
				})
			}
		}
	}
</script>

<style lang="less">
	.catgory-flxe{
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		text-align: center;
		margin-left: 11rpx;
		margin-bottom: 20rpx;
		.catgory-item{
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			width: 146rpx;
			margin-top: 20rpx;
			image{
				width: 60rpx;
				height: 60rpx;
			}
			text{
				font-size: 25rpx;
			}
		}
		
	}
	
</style>
